﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ConfigurationContext
{
    /// <summary>
    /// 用户相关终端
    /// </summary>
    public class UserRelatedTerminal : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected UserRelatedTerminal() { }
        #endregion

        #region 01.创建用户相关终端构造器
        /// <summary>
        /// 创建用户相关终端构造器
        /// </summary>
        /// <param name="terminalId">终端Id</param>
        public UserRelatedTerminal(Guid terminalId)
            : this()
        {
            this.TerminalId = terminalId;
        }
        #endregion

        #endregion

        #region # 属性

        #region 终端Id —— Guid TerminalId
        /// <summary>
        /// 终端Id
        /// </summary>
        public Guid TerminalId { get; private set; }
        #endregion

        #region 导航属性 - 用户扩展 —— UserExtension UserExtension
        /// <summary>
        /// 导航属性 - 用户扩展
        /// </summary>
        public virtual UserExtension UserExtension { get; internal set; }
        #endregion

        #endregion
    }
}
